<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>FabGL: keyboard.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">FabGL
   </div>
   <div id="projectbrief">ESP32 Display Controller and Graphics Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('keyboard_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">keyboard.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="keyboard_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">  Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - &lt;http://www.fabgl.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">  Copyright (c) 2019-2021 Fabrizio Di Vittorio.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">  All rights reserved.</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">* Please contact fdivitto2013@gmail.com if you need a commercial license.</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">* This library and related software is available under GPL v3.</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">  FabGL is free software: you can redistribute it and/or modify</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">  it under the terms of the GNU General Public License as published by</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">  the Free Software Foundation, either version 3 of the License, or</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">  (at your option) any later version.</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">  FabGL is distributed in the hope that it will be useful,</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">  but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">  GNU General Public License for more details.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">  You should have received a copy of the GNU General Public License</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">  along with FabGL.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;freertos/FreeRTOS.h&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabglconf_8h.html">fabglconf.h</a>&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ps2device_8h.html">comdrivers/ps2device.h</a>&quot;</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="fabui_8h.html">fabui.h</a>&quot;</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="kbdlayouts_8h.html">kbdlayouts.h</a>&quot;</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="codepages_8h.html">codepages.h</a>&quot;</span></div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefabgl.html">fabgl</a> {</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard.html">   77</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfabgl_1_1_keyboard.html">Keyboard</a> : <span class="keyword">public</span> <a class="code" href="classfabgl_1_1_p_s2_device.html">PS2Device</a> {</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;  <a class="code" href="classfabgl_1_1_keyboard.html">Keyboard</a>();</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;  ~<a class="code" href="classfabgl_1_1_keyboard.html">Keyboard</a>();</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">begin</a>(gpio_num_t clkGPIO, gpio_num_t dataGPIO, <span class="keywordtype">bool</span> generateVirtualKeys = <span class="keyword">true</span>, <span class="keywordtype">bool</span> createVKQueue = <span class="keyword">true</span>);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">begin</a>(<span class="keywordtype">bool</span> generateVirtualKeys, <span class="keywordtype">bool</span> createVKQueue, <span class="keywordtype">int</span> PS2Port);</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">  136</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">setUIApp</a>(<a class="code" href="classfabgl_1_1ui_app.html">uiApp</a> * app) { m_uiApp = app; }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">reset</a>();</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">  152</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">isKeyboardAvailable</a>() { <span class="keywordflow">return</span> m_keyboardAvailable; }</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243.html#aca97a7179d5358ec795485e15618b243">setLayout</a>(<a class="code" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout);</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a164361d7dc1597cd75db35c06d87e7d6.html#a164361d7dc1597cd75db35c06d87e7d6">  175</a></span>&#160;  <a class="code" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * <a class="code" href="classfabgl_1_1_keyboard_a164361d7dc1597cd75db35c06d87e7d6.html#a164361d7dc1597cd75db35c06d87e7d6">getLayout</a>() { <span class="keywordflow">return</span> m_layout; }</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851.html#ad64abdda7b0ab92e15e23c602571e851">isVKDown</a>(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da.html#a1da2800c551ac4fa0fe2f61915a8a2da">virtualKeyAvailable</a>();</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;  <a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> <a class="code" href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">getNextVirtualKey</a>(<span class="keywordtype">bool</span> * keyDown = <span class="keyword">nullptr</span>, <span class="keywordtype">int</span> timeOutMS = -1);</div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">getNextVirtualKey</a>(<a class="code" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item, <span class="keywordtype">int</span> timeOutMS = -1);</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">injectVirtualKey</a>(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey, <span class="keywordtype">bool</span> keyDown, <span class="keywordtype">bool</span> insert = <span class="keyword">false</span>);</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">injectVirtualKey</a>(<a class="code" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> <span class="keyword">const</span> &amp; item, <span class="keywordtype">bool</span> insert = <span class="keyword">false</span>);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8.html#aefe8cfbbb777abf28e87a1caf05da5e8">emptyVirtualKeyQueue</a>();</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b.html#aa360795d47499669a2b42cc6a6d3ff7b">virtualKeyToASCII</a>(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;</div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">  275</a></span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">setCodePage</a>(CodePage <span class="keyword">const</span> * codepage)                      { m_codepage = codepage; }</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c.html#a55976327987b5fa4942532e400d7480c">scancodeAvailable</a>();</div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;</div><div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52.html#ad95b6b1928e6bd2cb5b5e3fb8be11f52">getNextScancode</a>(<span class="keywordtype">int</span> timeOutMS = -1, <span class="keywordtype">bool</span> requestResendOnTimeOut = <span class="keyword">false</span>);</div><div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;</div><div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872.html#a99a84478b09fbb13863c3ec64f7ca872">setLEDs</a>(<span class="keywordtype">bool</span> numLock, <span class="keywordtype">bool</span> capsLock, <span class="keywordtype">bool</span> scrollLock);</div><div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;</div><div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767.html#abda5b9383751f677dd50359f5d5e6767">getLEDs</a>(<span class="keywordtype">bool</span> * numLock, <span class="keywordtype">bool</span> * capsLock, <span class="keywordtype">bool</span> * scrollLock);</div><div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;</div><div class="line"><a name="l00334"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">  334</a></span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">setTypematicRateAndDelay</a>(<span class="keywordtype">int</span> repeatRateMS, <span class="keywordtype">int</span> repeatDelayMS) { <span class="keywordflow">return</span> send_cmdTypematicRateAndDelay(repeatRateMS, repeatDelayMS); }</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce.html#a600e8df9a742233bd074a2510be71cce">setScancodeSet</a>(<span class="keywordtype">int</span> value);</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;</div><div class="line"><a name="l00356"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">  356</a></span>&#160;  <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">scancodeSet</a>()                { <span class="keywordflow">return</span> m_scancodeSet; }</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;  <span class="keyword">static</span> uint8_t convScancodeSet2To1(uint8_t code);</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;<span class="preprocessor">#if FABGLIB_HAS_VirtualKeyO_STRING</span></div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">char</span> <span class="keyword">const</span> * virtualKeyToString(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> virtualKey);</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div><div class="line"><a name="l00373"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">  373</a></span>&#160;  Delegate&lt;VirtualKey *, bool&gt; <a class="code" href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">onVirtualKey</a>;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div><div class="line"><a name="l00386"></a><span class="lineno"><a class="line" href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">  386</a></span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">scancodeToVirtualKeyTaskStackSize</a>;</div><div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;</div><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;  <a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> scancodeToVK(uint8_t scancode, <span class="keywordtype">bool</span> isExtended, <a class="code" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;  <a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> VKtoAlternateVK(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> in_vk, <span class="keywordtype">bool</span> down, <a class="code" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> * layout = <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;  <a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> manageCAPSLOCK(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> vk);</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;  <span class="keywordtype">void</span> updateLEDs();</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;  <span class="keywordtype">bool</span> blockingGetVirtualKey(<a class="code" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item);</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;  <span class="keywordtype">void</span> convertScancode2to1(<a class="code" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> * item);</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;  <span class="keywordtype">void</span> postVirtualKeyItem(<a class="code" href="structfabgl_1_1_virtual_key_item.html">VirtualKeyItem</a> <span class="keyword">const</span> &amp; item);</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">int</span> convKeypadVKToNum(<a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a> vk);</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;  <span class="keyword">static</span> <span class="keywordtype">void</span> SCodeToVKConverterTask(<span class="keywordtype">void</span> * pvParameters);</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;  <span class="keywordtype">bool</span>                      m_keyboardAvailable;  <span class="comment">// self test passed and support for scancode set 2</span></div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;  <span class="comment">// these are valid after a call to generateVirtualKeys(true)</span></div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;  TaskHandle_t              m_SCodeToVKConverterTask; <span class="comment">// Task that converts scancodes to virtual key and populates m_virtualKeyQueue</span></div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;  QueueHandle_t             m_virtualKeyQueue;</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;  uint8_t                   m_VKMap[(int)(VK_LAST + 7) / 8];</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;  <span class="comment">// allowed values: 1, 2 or 3</span></div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;  <span class="comment">// If virtual keys are enabled only 1 and 2 are possible. In case of scancode set 1 it is converted from scan code set 2, which is necessary</span></div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;  <span class="comment">// in order to decode virtual keys.</span></div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;  uint8_t                   m_scancodeSet;</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;  <a class="code" href="structfabgl_1_1_keyboard_layout.html">KeyboardLayout</a> <span class="keyword">const</span> *    m_layout;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;  <a class="code" href="classfabgl_1_1ui_app.html">uiApp</a> *                   m_uiApp;</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  <span class="keywordtype">bool</span>                      m_CTRL;</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;  <span class="keywordtype">bool</span>                      m_LALT;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  <span class="keywordtype">bool</span>                      m_RALT;</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;  <span class="keywordtype">bool</span>                      m_SHIFT;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;  <span class="keywordtype">bool</span>                      m_CAPSLOCK;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;  <span class="keywordtype">bool</span>                      m_GUI;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;  <span class="keywordtype">bool</span>                      m_NUMLOCK;</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;  <span class="keywordtype">bool</span>                      m_SCROLLLOCK;</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;  <a class="code" href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">VirtualKey</a>                m_lastDeadKey;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;  <span class="comment">// store status of the three LEDs</span></div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;  <span class="keywordtype">bool</span>                      m_numLockLED;</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;  <span class="keywordtype">bool</span>                      m_capsLockLED;</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  <span class="keywordtype">bool</span>                      m_scrollLockLED;</div><div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;</div><div class="line"><a name="l00437"></a><span class="lineno">  437</span>&#160;  CodePage <span class="keyword">const</span> *          m_codepage;</div><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;};</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;} <span class="comment">// end of namespace</span></div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;</div><div class="line"><a name="l00450"></a><span class="lineno">  450</span>&#160;</div><div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div><div class="line"><a name="l00452"></a><span class="lineno">  452</span>&#160;</div><div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;</div><div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div><div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;</div><div class="ttc" id="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b_html_a43ee85b9025f15c6edeb7ec670ca535b"><div class="ttname"><a href="classfabgl_1_1_keyboard_a43ee85b9025f15c6edeb7ec670ca535b.html#a43ee85b9025f15c6edeb7ec670ca535b">fabgl::Keyboard::injectVirtualKey</a></div><div class="ttdeci">void injectVirtualKey(VirtualKey virtualKey, bool keyDown, bool insert=false)</div><div class="ttdoc">Adds or inserts a virtual key into the virtual keys queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00526">keyboard.cpp:526</a></div></div>
<div class="ttc" id="structfabgl_1_1_keyboard_layout_html"><div class="ttname"><a href="structfabgl_1_1_keyboard_layout.html">fabgl::KeyboardLayout</a></div><div class="ttdoc">All in one structure to fully represent a keyboard layout. </div><div class="ttdef"><b>Definition:</b> <a href="kbdlayouts_8h_source.html#l00082">kbdlayouts.h:82</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688_html_aef1dd1399d92a09d1ed115911b563688"><div class="ttname"><a href="classfabgl_1_1_keyboard_aef1dd1399d92a09d1ed115911b563688.html#aef1dd1399d92a09d1ed115911b563688">fabgl::Keyboard::isKeyboardAvailable</a></div><div class="ttdeci">bool isKeyboardAvailable()</div><div class="ttdoc">Checks if keyboard has been detected and correctly initialized. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00152">keyboard.h:152</a></div></div>
<div class="ttc" id="classfabgl_1_1ui_app_html"><div class="ttname"><a href="classfabgl_1_1ui_app.html">fabgl::uiApp</a></div><div class="ttdoc">Represents the whole application base class. </div><div class="ttdef"><b>Definition:</b> <a href="fabui_8h_source.html#l02703">fabui.h:2703</a></div></div>
<div class="ttc" id="fabui_8h_html"><div class="ttname"><a href="fabui_8h.html">fabui.h</a></div><div class="ttdoc">This file contains all classes related to FabGL Graphical User Interface. </div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b_html_aa360795d47499669a2b42cc6a6d3ff7b"><div class="ttname"><a href="classfabgl_1_1_keyboard_aa360795d47499669a2b42cc6a6d3ff7b.html#aa360795d47499669a2b42cc6a6d3ff7b">fabgl::Keyboard::virtualKeyToASCII</a></div><div class="ttdeci">int virtualKeyToASCII(VirtualKey virtualKey)</div><div class="ttdoc">Converts virtual key to ASCII. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00237">keyboard.cpp:237</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1_html_a823914d949a5510b933dcfb335e36ab1"><div class="ttname"><a href="classfabgl_1_1_keyboard_a823914d949a5510b933dcfb335e36ab1.html#a823914d949a5510b933dcfb335e36ab1">fabgl::Keyboard::setUIApp</a></div><div class="ttdeci">void setUIApp(uiApp *app)</div><div class="ttdoc">Sets current UI app. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00136">keyboard.h:136</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8_html_aefe8cfbbb777abf28e87a1caf05da5e8"><div class="ttname"><a href="classfabgl_1_1_keyboard_aefe8cfbbb777abf28e87a1caf05da5e8.html#aefe8cfbbb777abf28e87a1caf05da5e8">fabgl::Keyboard::emptyVirtualKeyQueue</a></div><div class="ttdeci">void emptyVirtualKeyQueue()</div><div class="ttdoc">Empties the virtual keys queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00702">keyboard.cpp:702</a></div></div>
<div class="ttc" id="kbdlayouts_8h_html"><div class="ttname"><a href="kbdlayouts_8h.html">kbdlayouts.h</a></div><div class="ttdoc">This file contains keyboard layouts. </div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e_html_a41c6325db16da56b81f05e8d9dcabd0e"><div class="ttname"><a href="classfabgl_1_1_keyboard_a41c6325db16da56b81f05e8d9dcabd0e.html#a41c6325db16da56b81f05e8d9dcabd0e">fabgl::Keyboard::onVirtualKey</a></div><div class="ttdeci">Delegate&lt; VirtualKey *, bool &gt; onVirtualKey</div><div class="ttdoc">Delegate called whenever a new virtual key is decoded from scancodes. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00373">keyboard.h:373</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af_html_ac1d99a6ef63ceea2bdf227fd7dc1c1af"><div class="ttname"><a href="classfabgl_1_1_keyboard_ac1d99a6ef63ceea2bdf227fd7dc1c1af.html#ac1d99a6ef63ceea2bdf227fd7dc1c1af">fabgl::Keyboard::setCodePage</a></div><div class="ttdeci">void setCodePage(CodePage const *codepage)</div><div class="ttdoc">Sets font codepage for virtual key to ASCII conversion. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00275">keyboard.h:275</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767_html_abda5b9383751f677dd50359f5d5e6767"><div class="ttname"><a href="classfabgl_1_1_keyboard_abda5b9383751f677dd50359f5d5e6767.html#abda5b9383751f677dd50359f5d5e6767">fabgl::Keyboard::getLEDs</a></div><div class="ttdeci">void getLEDs(bool *numLock, bool *capsLock, bool *scrollLock)</div><div class="ttdoc">Gets keyboard LEDs status. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00164">keyboard.cpp:164</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851_html_ad64abdda7b0ab92e15e23c602571e851"><div class="ttname"><a href="classfabgl_1_1_keyboard_ad64abdda7b0ab92e15e23c602571e851.html#ad64abdda7b0ab92e15e23c602571e851">fabgl::Keyboard::isVKDown</a></div><div class="ttdeci">bool isVKDown(VirtualKey virtualKey)</div><div class="ttdoc">Gets the virtual keys status. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00663">keyboard.cpp:663</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_html"><div class="ttname"><a href="classfabgl_1_1_keyboard.html">fabgl::Keyboard</a></div><div class="ttdoc">The PS2 Keyboard controller class. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00077">keyboard.h:77</a></div></div>
<div class="ttc" id="structfabgl_1_1_virtual_key_item_html"><div class="ttname"><a href="structfabgl_1_1_virtual_key_item.html">fabgl::VirtualKeyItem</a></div><div class="ttdoc">A struct which contains a virtual key, key state and associated scan code. </div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l01284">fabutils.h:1284</a></div></div>
<div class="ttc" id="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02_html_gad0e6e31d5953384be4ea987eb3923e02"><div class="ttname"><a href="group___enumerations_gad0e6e31d5953384be4ea987eb3923e02.html#gad0e6e31d5953384be4ea987eb3923e02">fabgl::VirtualKey</a></div><div class="ttdeci">VirtualKey</div><div class="ttdoc">Represents each possible real or derived (SHIFT + real) key. </div><div class="ttdef"><b>Definition:</b> <a href="fabutils_8h_source.html#l01016">fabutils.h:1016</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872_html_a99a84478b09fbb13863c3ec64f7ca872"><div class="ttname"><a href="classfabgl_1_1_keyboard_a99a84478b09fbb13863c3ec64f7ca872.html#a99a84478b09fbb13863c3ec64f7ca872">fabgl::Keyboard::setLEDs</a></div><div class="ttdeci">bool setLEDs(bool numLock, bool capsLock, bool scrollLock)</div><div class="ttdoc">Sets keyboard LEDs status. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00155">keyboard.cpp:155</a></div></div>
<div class="ttc" id="codepages_8h_html"><div class="ttname"><a href="codepages_8h.html">codepages.h</a></div><div class="ttdoc">This file contains codepages declarations. </div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1_html_a4f1c6a36aae1c88e57c6bc7e05c772d1"><div class="ttname"><a href="classfabgl_1_1_keyboard_a4f1c6a36aae1c88e57c6bc7e05c772d1.html#a4f1c6a36aae1c88e57c6bc7e05c772d1">fabgl::Keyboard::begin</a></div><div class="ttdeci">void begin(gpio_num_t clkGPIO, gpio_num_t dataGPIO, bool generateVirtualKeys=true, bool createVKQueue=true)</div><div class="ttdoc">Initializes Keyboard specifying CLOCK and DATA GPIOs. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00101">keyboard.cpp:101</a></div></div>
<div class="ttc" id="namespacefabgl_html"><div class="ttname"><a href="namespacefabgl.html">fabgl</a></div><div class="ttdef"><b>Definition:</b> <a href="canvas_8cpp_source.html#l00036">canvas.cpp:36</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba_html_a0de31f752f76a296060bc792b51e50ba"><div class="ttname"><a href="classfabgl_1_1_keyboard_a0de31f752f76a296060bc792b51e50ba.html#a0de31f752f76a296060bc792b51e50ba">fabgl::Keyboard::getNextVirtualKey</a></div><div class="ttdeci">VirtualKey getNextVirtualKey(bool *keyDown=nullptr, int timeOutMS=-1)</div><div class="ttdoc">Gets a virtual key from the queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00684">keyboard.cpp:684</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da_html_a1da2800c551ac4fa0fe2f61915a8a2da"><div class="ttname"><a href="classfabgl_1_1_keyboard_a1da2800c551ac4fa0fe2f61915a8a2da.html#a1da2800c551ac4fa0fe2f61915a8a2da">fabgl::Keyboard::virtualKeyAvailable</a></div><div class="ttdeci">int virtualKeyAvailable()</div><div class="ttdoc">Gets the number of virtual keys available in the queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00696">keyboard.cpp:696</a></div></div>
<div class="ttc" id="classfabgl_1_1_p_s2_device_html"><div class="ttname"><a href="classfabgl_1_1_p_s2_device.html">fabgl::PS2Device</a></div><div class="ttdoc">Base class for PS2 devices (like mouse or keyboard). </div><div class="ttdef"><b>Definition:</b> <a href="ps2device_8h_source.html#l00070">ps2device.h:70</a></div></div>
<div class="ttc" id="fabglconf_8h_html"><div class="ttname"><a href="fabglconf_8h.html">fabglconf.h</a></div><div class="ttdoc">This file contains FabGL library configuration settings, like number of supported colors...</div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f_html_a50910ef42a65d4c139af341f1ef2323f"><div class="ttname"><a href="classfabgl_1_1_keyboard_a50910ef42a65d4c139af341f1ef2323f.html#a50910ef42a65d4c139af341f1ef2323f">fabgl::Keyboard::reset</a></div><div class="ttdeci">bool reset()</div><div class="ttdoc">Sends a Reset command to the keyboard. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00110">keyboard.cpp:110</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52_html_ad95b6b1928e6bd2cb5b5e3fb8be11f52"><div class="ttname"><a href="classfabgl_1_1_keyboard_ad95b6b1928e6bd2cb5b5e3fb8be11f52.html#ad95b6b1928e6bd2cb5b5e3fb8be11f52">fabgl::Keyboard::getNextScancode</a></div><div class="ttdeci">int getNextScancode(int timeOutMS=-1, bool requestResendOnTimeOut=false)</div><div class="ttdoc">Gets a scancode from the queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00187">keyboard.cpp:187</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c_html_a55976327987b5fa4942532e400d7480c"><div class="ttname"><a href="classfabgl_1_1_keyboard_a55976327987b5fa4942532e400d7480c.html#a55976327987b5fa4942532e400d7480c">fabgl::Keyboard::scancodeAvailable</a></div><div class="ttdeci">int scancodeAvailable()</div><div class="ttdoc">Gets the number of scancodes available in the queue. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00181">keyboard.cpp:181</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc_html_a298b50557e15073b8bca4773f118f1dc"><div class="ttname"><a href="classfabgl_1_1_keyboard_a298b50557e15073b8bca4773f118f1dc.html#a298b50557e15073b8bca4773f118f1dc">fabgl::Keyboard::scancodeToVirtualKeyTaskStackSize</a></div><div class="ttdeci">static int scancodeToVirtualKeyTaskStackSize</div><div class="ttdoc">Stack size of the task that converts scancodes to Virtual Keys Keyboard. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00386">keyboard.h:386</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de_html_af2f021a81df654389e62860afdb8f1de"><div class="ttname"><a href="classfabgl_1_1_keyboard_af2f021a81df654389e62860afdb8f1de.html#af2f021a81df654389e62860afdb8f1de">fabgl::Keyboard::setTypematicRateAndDelay</a></div><div class="ttdeci">bool setTypematicRateAndDelay(int repeatRateMS, int repeatDelayMS)</div><div class="ttdoc">Sets typematic rate and delay. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00334">keyboard.h:334</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6_html_aac6f6dc99df5db0ee8bb96b4917022b6"><div class="ttname"><a href="classfabgl_1_1_keyboard_aac6f6dc99df5db0ee8bb96b4917022b6.html#aac6f6dc99df5db0ee8bb96b4917022b6">fabgl::Keyboard::scancodeSet</a></div><div class="ttdeci">int scancodeSet()</div><div class="ttdoc">Gets current scancode set. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00356">keyboard.h:356</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce_html_a600e8df9a742233bd074a2510be71cce"><div class="ttname"><a href="classfabgl_1_1_keyboard_a600e8df9a742233bd074a2510be71cce.html#a600e8df9a742233bd074a2510be71cce">fabgl::Keyboard::setScancodeSet</a></div><div class="ttdeci">bool setScancodeSet(int value)</div><div class="ttdoc">Sets the scancode set. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00136">keyboard.cpp:136</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243_html_aca97a7179d5358ec795485e15618b243"><div class="ttname"><a href="classfabgl_1_1_keyboard_aca97a7179d5358ec795485e15618b243.html#aca97a7179d5358ec795485e15618b243">fabgl::Keyboard::setLayout</a></div><div class="ttdeci">void setLayout(KeyboardLayout const *layout)</div><div class="ttdoc">Sets keyboard layout. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8cpp_source.html#l00204">keyboard.cpp:204</a></div></div>
<div class="ttc" id="classfabgl_1_1_keyboard_a164361d7dc1597cd75db35c06d87e7d6_html_a164361d7dc1597cd75db35c06d87e7d6"><div class="ttname"><a href="classfabgl_1_1_keyboard_a164361d7dc1597cd75db35c06d87e7d6.html#a164361d7dc1597cd75db35c06d87e7d6">fabgl::Keyboard::getLayout</a></div><div class="ttdeci">KeyboardLayout const  * getLayout()</div><div class="ttdoc">Gets current keyboard layout. </div><div class="ttdef"><b>Definition:</b> <a href="keyboard_8h_source.html#l00175">keyboard.h:175</a></div></div>
<div class="ttc" id="ps2device_8h_html"><div class="ttname"><a href="ps2device_8h.html">ps2device.h</a></div><div class="ttdoc">This file contains fabgl::PS2Device definition. </div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_82e8a5453e51b0b6168db3257bd0eaab.html">devdrivers</a></li><li class="navelem"><a class="el" href="keyboard_8h.html">keyboard.h</a></li>
    <li class="footer">Generated on Mon Aug 2 2021 07:08:03 for FabGL by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
